
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id$
 */

package org.dellroad.sidekar;

public abstract class SchemaEntityElement extends SchemaElement {

    private final Entity<?> entity;

    SchemaEntityElement(Entity<?> entity, String name) {
        super(entity.getSchema(), name);
        this.entity = entity;
    }

    /**
     * Get the {@link Entity} that this instance is associated with.
     */
    public Entity<?> getEntity() {
        return this.entity;
    }
}

